package com.hzy.dao;

import com.hzy.pojo.Fruit;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Package: com.hzy.dao
 * @ClassName: FruitMapper
 * @Author: 862982795
 * @CreateTime: 2021/06/19 20:12
 * @Description:
 */
public interface FruitMapper {
    //分页查询所有信息
    public List<Fruit> getList(@Param("pageBegin") Integer pageBegin, @Param("pageSize") Integer pageSize);

    //根据主键，查询信息
    public Fruit info(@Param("fruitId") Integer fruitId);

    // 获取总记录数
    public int getCount();

    //添加
    public int add(Fruit f);

    //删除
    public int delete(@Param("fruitId") Integer fruitId);

    //修改
    public int update(Fruit f);
}
